package com.ll.annotation_;

/**
 * @author 刘龙
 * @version 1.0
 */
public class DeprecatedDemo01 {
    public static void main(String[] args) {
        A a = new A();
        a.hi();
        System.out.println(a.n1);

    }
}

@Deprecated
class A {
    @Deprecated
    public int n1 = 10;

    @Deprecated
    public void hi(){

    }
}
